package com.proback.service;

import com.proback.entity.User;

public interface UserService {

    User register(String account, String username, String password) throws Exception;

    User login(String account, String password) throws Exception;

    void deleteUserById(Integer id) throws Exception;
    User getUserById(Integer id);

    User updateUsername(Integer userId, String newUsername) throws Exception;
    void changePassword(Integer userId, String oldPassword, String newPassword) throws Exception;
}

